package com.chencai.wiki.database.googleapp;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class TableLabel 
{
	
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
    
    
    @Persistent
    private Date createDate;
    
    
    @Persistent
    private String author;
    
    @Persistent
    private String content;
    
    public TableLabel(Date createDate, String author, String content)
    {
    	this.createDate = createDate;
    	this.author = author;
    	this.content = content;
    }
    
    public Date getCreateDate()
    {
    	return this.createDate;
    }
    
    public void setCreateDate(Date date)
    {
    	this.createDate = date;
    }
    
    public String getAuthor()
    {
    	return this.author;
    }
    
    public void setAuthor(String author)
    {
    	this.author = author;
    }
    
    public String getContent()
    {
    	return this.content;
    }
    
    public void setContent(String content)
    {
    	this.content = content;
    }

}
